<script setup>
import {ref} from "vue";
// ref 绑定 响应式数据
const username = ref('')
const password = ref('')

function login() {
    console.log(username)
    console.log(password)
    router.push('/index')
}
</script>

<template>
    <input type="text" v-model="username" placeholder="username"/>
    <input type="password" v-model="password" placeholder="password"/>
    <button @click="login">登录</button>
</template>

<style scoped>

</style>